<template>
  <div class="all">
    <header>
        <div class="div" @click="back">
          <img src="../../assets/fff返回.png" alt="">
          <span >返回</span>
        </div>
        <div class="div">
          <span>团队工作站</span>
        </div>
        <div class="div">
          <span></span>
        </div>
      </header>
    <div class="top">
      <div class="infoList">
        <div class="teamInfo infoDiv">
          <img v-if="teamInformation.team_icon" :src="teamInformation.team_icon" alt="" class="photo">
          <img v-else src="../../assets/男医生@2x.png" alt="" class="photo">
<!--          <img src="../../assets/男医生@2x.png" alt="" class="photo">-->
          <ul>
            <li>{{teamInformation.team_name}}</li>
            <li>{{teamInformation.NICK_NAME}} <a class="tag teamTag">团队长</a></li>
            <li>
              <a >{{teamInformation.MAJOR}}</a>
              <a >|</a>
              <a >{{teamInformation.DEPART}}</a>
            </li>
          </ul>
        </div>
        <div class="loginInfo infoDiv">
          <img v-if="loginInformation.PHOTO" :src="loginInformation.PHOTO" alt="" class="photo">
          <img v-else src="../../assets/男医生@2x.png" alt="" class="photo">
<!--          <img src="../../assets/男医生@2x.png" alt="" class="photo">-->
          <ul>
            <li>{{loginInformation.NICK_NAME}}</li>
            <li><a class="tag loginTag">登录人员</a></li>
            <li>
              <a>{{loginInformation.MAJOR}}</a>
              <a>|</a>
              <a>{{loginInformation.DEPART}}</a>
            </li>
          </ul>
        </div>
      </div>
      <transition name='slide-fade'>
       <div v-show="shrinkShow" class="infoList">
        <div class="infoDiv" style="border-right: 1px solid #fff;flex-direction: column">
          <span style="position: relative" ref="detailDom" class="textOVerFive" >
            <strong>团队简介</strong>：
            {{teamInformation.team_intro}}
            <a class="xiangqing" @click="showTeamtxt = true"></a>
<!--            [详情]-->
          </span>

          <p @click="runCode('team')" style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
            <img class="codeImg" src="../../assets/二维码.png" alt="">
            团队二维码
          </p>
        </div>
        <div class="infoDiv" style="flex-direction: column">
          <span style="position: relative" class="textOVerFive" >
            <strong>登录人员简介</strong>：
            {{loginInformation.INTRODUCE}}
          <a class="xiangqing" @click="showLogintxt = true"></a>
<!--            [详情]-->
          </span>
          <p @click="runCode('self')" style="display: flex;flex-direction: column;justify-content: center;align-items: center;">
            <img class="codeImg" src="../../assets/二维码.png" alt="">
            登录人员二维码
          </p>
        </div>
      </div>
      </transition>
      <div class="shrink" @click="shrinkShow = !shrinkShow">
        {{shrinkText}}
        <img v-if="shrinkShow == false" src="../../assets/箭头/arrow-down-bold.png" alt="">
        <img v-else src="../../assets/箭头/arrow-up-bold.png" alt="">
      </div>
      <div class="divMenu" style=" border-radius: 10px 10px 0 0;
      margin-top: 10px;">
        <ul @click.stop="lookTeam()">
          <li>{{teamInformation.count}}人</li>
          <li>团队成员</li>
        </ul>
        <ul  @click.stop="clickManaging_patients">
          <li>{{teamInformation.huanzheSize ? teamInformation.huanzheSize + '个' : '暂无'}}</li>
          <li>接受服务</li>
        </ul>
        <ul @click.stop="clickPrice">
          <li>{{teamInformation.size ? teamInformation.size + '项' : '暂无'}}</li>
          <li>提供服务</li>
        </ul>
      </div>
      <div class="divMenu">
        <ul>
          <li>{{teamInformation.jiezhenCount ? teamInformation.jiezhenCount  : '暂无'}}</li>
          <li>接诊率
          </li>
        </ul>
        <ul >
          <li>{{teamInformation.haopingLv ? teamInformation.haopingLv  : '暂无'}}</li>
          <li>好评率
          </li>
        </ul>
        <ul >
          <li>{{teamInformation.zixunCount ? teamInformation.zixunCount : '暂无'}}</li>
          <li>咨询量
          </li>
        </ul>
      </div>
    </div>
    <div class="title overText">
      <strong class="solid gonggaoSpan" >【团队通知】</strong>
      <span>暂无通知</span>
    </div>
    <van-collapse v-model="activeNames" accordion>
      <van-collapse-item
        :disabled="menuList.TeamManagement.length <= 0"
        style='margin-top:5px' title="标题1" name="1">
        <template #title>
          <div class="title_all" @click="NoMenuList">
            <a class="hengGang"></a>
            <strong>团队管理</strong>
          </div>
        </template>
        <div class="CommonFunctions">
          <div  v-for="(item, index) in menuList.TeamManagement" :key="index" @click="clickTeamUse(item)">
            <img :src="item.icon" alt="">
            <span>{{item.menu_name}}</span>
          </div>
        </div>
      </van-collapse-item>
      <van-collapse-item style='margin-top:5px' title="标题2" name="2">
        <template #title>
          <div class="title_all">
            <a class="hengGang"></a>
            <strong>业务处理</strong>
          </div>
        </template>
        <div class="CommonFunctions">
          <div  v-for="(item, index) in menuList.BusinessProcessing" :key="index" @click="clickUse(item)">
            <img :src="item.path == '#' ? item.icon_hui : item.icon" alt="">
            <span>{{item.name}}</span>
          </div>
        </div>
      </van-collapse-item>
      <van-collapse-item style='margin-top:5px' title="标题3" name="3">
        <template #title>
          <div class="title_all">
            <a class="hengGang"></a>
            <strong>我的管理</strong>
          </div>
        </template>
        <div class="CommonFunctions">
          <div  v-for="(item, index) in menuList.MyManagement" :key="index" @click="clickUse(item)">
            <img :src="item.path == '#' ? item.icon_hui : item.icon" alt="">
            <span>{{item.name}}</span>
          </div>
        </div>
      </van-collapse-item>
      <van-collapse-item style='margin-top:5px'  name="4">
        <template #title>
          <div class="title_all">
            <a class="hengGang"></a>
            <strong>统计与绩效</strong>
          </div>
        </template>
      </van-collapse-item>
    </van-collapse>
    <van-popup round
               position="bottom"
               :style="{ height: '80%', bottom: isShowtabbar? '0px' : '50px' }"
               v-model="changeTeamShow">
      <header style="background: #FFFFFF;color: #333333;padding: 0 10px;box-sizing: border-box;border-bottom: 1px solid #E5E5E5">
        <div class="div">
          <span class="solid" @click="changeTeamShow = false">返回</span>
        </div>
        <div class="div">
          <span >选择切换团队</span>
        </div>
        <div class="div">
          <span class="solid"  @click="changeTeam()">确认</span>
        </div>
      </header>
      <div class="box"
           @click="select_team_ID = item.id"
           :class="select_team_ID == item.id ? 'selectDoctor' : ''"
           v-for="(item, index) in teamList" :key="index">
        <div class="box_left">
          <img v-if="item.team_icon !== '' && item.team_icon !== undefined && item.team_icon !== null"
               :src="item.team_icon" class="PHOTO" alt="">
          <img v-else src="../../assets/男医生@2x.png" class="PHOTO" alt="">
        </div>
        <div class="box_right">
          <ul>
            <li>
                <span class="name">
                  {{item.team_name}}
                  <a style="font-weight: 500;font-size: 13px">({{item.count}}人)</a>
                </span>
            </li>
            <li>
              <span>团队长：{{item.NICK_NAME}}</span>
              &nbsp;
              &nbsp;
              <span style="font-weight: 500;font-size: 13px !important;">{{item.MAJOR}}</span>
              <span>|</span>
              <span style="font-weight: 500;font-size: 13px !important;">{{item.DEPART}}</span>
<!--              <span>团队人数：{{item.count}}人</span>-->
            </li>
<!--            <li>-->
<!--              <span style="font-weight: 500;font-size: 13px !important;">{{item.MAJOR}}</span>-->
<!--              <span>|</span>-->
<!--              <span style="font-weight: 500;font-size: 13px !important;">{{item.DEPART}}</span>-->
<!--            </li>-->
            <li>
              <span class="jieShao">{{item.HOSPITAL_NAME}}</span>
              <button class="biaoqian">{{item.GRADE}}</button>
            </li>
          </ul>
<!--          <div class="box_rigth_bottom">
            <p>
              <a >接诊率:</a>
              <span v-if=" item.jiezhenCount!== undefined && item.jiezhenCount!== null && item.jiezhenCount!== ''">{{item.jiezhenCount}}</span>
              <span v-else>暂无</span>
              <a >好评率:</a>
              <span v-if=" item.haopingLv!== undefined && item.haopingLv!== null && item.haopingLv!== ''">{{item.haopingLv}}</span>
              <span v-else>暂无</span>
              <a >咨询量:</a>
              <span v-if=" item.zixunCount!== undefined && item.zixunCount!== null && item.zixunCount!== ''">{{item.zixunCount}}</span>
              <span v-else>暂无</span>
            </p>
            <p class="goodAt">
              <a style="display: block">擅长:</a>
              <span>{{item.team_goodat}}</span>
            </p>
            <p>
              <a >最快回复:</a>
              <span style="color: #1DA4F2"  v-if="item.min !== undefined && item.min !== null && item.min !== ''">{{item.min}}</span>
              <span v-else style="color: #999999">暂无</span>
              <a >平均回复:</a>
              <span style="color: #1DA4F2" v-if="item.avg !== undefined && item.avg !== null && item.avg !== ''">{{item.avg}}</span>
              <span style="color: #999999" v-else>暂无</span>
            </p>
            <p class="goodAt" style="margin-top: 10px" v-show="item.manager_doc_name">
              <a >责任医生:</a>
              <span style="color: #1da5f2!important;">{{item.manager_doc_name}}</span>
            </p>
          </div>-->
        </div>
      </div>
    </van-popup>
    <van-dialog v-model="showTeamtxt"
                title="团队简介"
                closeOnClickOverlay="true"
                :showConfirmButton="false"
                :showCancelButton="false"
                :message="teamInformation.team_intro" show-cancel-button>
    </van-dialog>
    <van-dialog
      closeOnClickOverlay="true"
      :showConfirmButton="false"
      :showCancelButton="false"
      title="登录人员简介"
      v-model="showLogintxt" :message="loginInformation.INTRODUCE" show-cancel-button>
    </van-dialog>
  </div>
</template>
<script>
import $ from 'jquery'
export default {
  name: 'TeamHome',
  data () {
    return {
      topActive: this.$route.query.topActive, // 0我创建 1我加入 2未加入
      userid: this.$route.query.userid,
      team_id: this.$route.query.id,
      teamInformation: [],
      loginInformation: [],
      TeamLeader: '',
      shrinkShow: false,
      activeNames: '',
      menuList: {
        TeamManagement: [
          {
            name: '团队通知',
            icon: require('../../assets/team/tuanduigonggao.png'),
            icon_hui: require('../../assets/team/tuanduigonggao-hui.png'),
            path: '#'
          }, {
            name: '团队信息维护',
            icon: require('../../assets/team/tuanduixinxiweihu.png'),
            icon_hui: require('../../assets/team/tuanduixinxiweihu-hui.png'),
            path: '/BuildTeam'
          }, {
            name: '团队提供服务',
            icon: require('../../assets/team/tuanduitigongfuwu.png'),
            icon_hui: require('../../assets/team/tuanduitigongfuwu-hui.png'),
            path: '/priceList'
          }, {
            name: '团队排班',
            icon: require('../../assets/team/tuanduipaiban.png'),
            icon_hui: require('../../assets/team/tuanduipaiban-hui.png'),

            path: '/TeamSchedulingTable'
          }, {
            name: '组织架构',
            icon: require('../../assets/team/zuzhijiagou.png'),
            icon_hui: require('../../assets/team/zuzhijiagou-hui.png'),
            path: '#'
          }, {
            name: '评定审核链',
            icon: require('../../assets/team/pingdingshenhelian.png'),
            icon_hui: require('../../assets/team/pingdingshenhelian-hui.png'),
            path: '/JudgeTable'
          }, {
            name: '档案分配',
            icon: require('../../assets/team/danganfenpei.png'),
            icon_hui: require('../../assets/team/danganfenpei-hui.png'),

            path: '/FileDistributionList'
          }, {
            name: '成员招募',
            icon: require('../../assets/team/chengyuanzhaomu.png'),
            icon_hui: require('../../assets/team/chengyuanzhaomu-hui.png'),

            path: '#'
          }, {
            name: '系统设置',
            icon: require('../../assets/team/xitongshezhi.png'),
            icon_hui: require('../../assets/team/xitongshezhi-hui.png'),

            path: '/TeamSys'
          }
        ],
        BusinessProcessing: [
          {
            name: '图文咨询',
            icon: require('../../assets/team/tuwenzixun.png'),
            icon_hui: require('../../assets/team/tuwenzixun-hui.png'),

            path: '/docTuwenHome',
            type: '1'
          },
          {
            name: '视频咨询',
            icon: require('../../assets/team/shipinzixun.png'),
            icon_hui: require('../../assets/team/shipinzixun-hui.png'),

            path: '/docTuwenHome',
            type: '2'
          },
          {
            name: '评定管理',
            icon: require('../../assets/team/pingdingguanli.png'),
            icon_hui: require('../../assets/team/pingdingguanli -hui.png'),
            path: '/selectAssessor',
            type: 1
          },
          {
            name: '远程会诊',
            icon: require('../../assets/team/yuancehnghuizhen.png'),
            icon_hui: require('../../assets/team/yuancehnghuizhen-hui.png'),
            path: '/docTuwenHome',
            type: '5'
          },
          {
            name: '居家康复',
            icon: require('../../assets/team/jujiakangfu.png'),
            icon_hui: require('../../assets/team/jujiakangfu-hui.png'),
            path: '/DocOrderJujia',
            type: 0
          },
          {
            name: '居家护理',
            icon: require('../../assets/team/jujiahuli.png'),
            icon_hui: require('../../assets/team/jujiahuli-hui.png'),
            path: '/DocOrderJujia',
            type: 1
          },
          {
            name: '居家生活',
            icon: require('../../assets/team/jujiashenghuo.png'),
            icon_hui: require('../../assets/team/jujiashenghuo-hui.png'),
            path: '/DocOrderJujia',
            type: 2
          }, {
            name: '居家养老',
            icon: require('../../assets/team/jujiayanglao.png'),
            icon_hui: require('../../assets/team/jujiayanglao-hui.png'),
            path: '/DocOrderJujia',
            type: 3
          },
          {
            name: '个人工作计划',
            icon: require('../../assets/team/gongzuojihua.png'),
            icon_hui: require('../../assets/team/gongzuojihua-hui.png'),
            path: '/patientList'
          },
          {
            name: '相互沟通',
            icon: require('../../assets/team/xianghugoutong.png'),
            icon_hui: require('../../assets/team/xianghugoutong-hui.png'),
            path: '/TeamChatList'
          }
        ],
        MyManagement: [
          {
            name: '我的排班',
            icon: require('../../assets/team/wodepaiban.png'),
            icon_hui: require('../../assets/team/wodepaiban-hui.png'),
            path: '/ScheduleListTable'
          }, {
            name: '我的服务项目',
            icon: require('../../assets/team/wodefuwuxiangmu.png'),
            icon_hui: require('../../assets/team/wodefuwuxiangmu-hui.png'),
            path: '/TeamMyServicesTable'
          }, {
            name: '切换团队',
            icon: require('../../assets/team/qiehuantuandui.png'),
            icon_hui: require('../../assets/team/qiehuantuandui-hui.png'),

            path: '/TeamHome'
          }, {
            name: '退出团队',
            icon: require('../../assets/team/tuichutuandui.png'),
            icon_hui: require('../../assets/team/tuichutuandui.png'),
            path: '#'
          }
        ]
      },
      changeTeamShow: false,
      teamList: [],
      select_team_ID: '',
      showTeamtxt: false,
      showLogintxt: false,
      isShowtabbar: sessionStorage.getItem('isShowtabbar')
    }
  },
  mounted () {
    if (sessionStorage.getItem('isErweimaShow')) {
      this.shrinkShow = true
      sessionStorage.removeItem('isErweimaShow')
    }
    // 获取团队详情
    this.getTeamDetail()
    // 登录者信息
    this.getDocInfo()
    // 获取参加的所有团队
    this.getMyteam()
    this.getTeamMenu()
  },
  computed: {
    shrinkText () {
      let text = ''
      if (this.shrinkShow == true) {
        text = '收起'
      } else {
        text = '展开'
      }
      return text
    }
  },
  methods: {
    NoMenuList () {
      if (this.menuList.TeamManagement.length <= 0) {
        this.$toast('暂无权限')
        return false
      }
    },
    getTeamMenu () {
      this.$http.findTeamManageMenu({team_id: this.team_id})
        .then(res => {
          console.log(res)
          if (res.data.status === 'success') {
            this.menuList.TeamManagement = res.data.data
          } else {
            this.$toast(res.data.msg)
          }
        })
        .catch(err => {
          console.log(err)
          this.$toast('您的网络有些拥挤，请稍后再试')
        })
    },
    // 切换团队
    changeTeam () {
      this.$router.replace({path: '/TeamHome',
        query: {userid: this.userid, id: this.select_team_ID}
      })
      this.team_id = this.select_team_ID
      this.changeTeamShow = false
      this.$toast('切换成功')
      // 获取团队详情
      this.getTeamDetail()
    },
    // 我加入的团队
    getMyteam () {
      this.$http.TeamList({team_type: 4})
        .then(res => {
          console.log(res)
          if (res.data.status === 'success') {
            this.teamList = res.data.data
          } else {
            this.$toast(res.data.msg)
          }
        })
        .catch(err => {
          console.log(err)
          this.$toast('您的网络有些拥挤，请稍后再试')
        })
    },
    // 已加入 查看团队成员
    lookTeam () {
      // if (this.topActive == 0 || this.topActive == 1) {
      this.$router.push({
        path: '/TeamMembers',
        query: {id: this.team_id, TeamLeader: this.TeamLeader, doc_user_id: this.userid}
      })
      // }
    },
    // 点击管理患者
    clickManaging_patients () {
      // if (this.topActive == 0 || this.topActive == 1) {
      if (this.teamInformation && this.teamInformation.USER_ID == this.userid) {
        this.$router.push({path: '/FileDistributionList', query: {userid: this.userid, isAll: 1, team_id: this.team_id}})
      }
      // }
    },
    // 点击 服务价格
    clickPrice () {
      // if (this.teamInformation && this.teamInformation.USER_ID == this.userid) {
      //   this.$router.push({path: '/priceList', query: {userid: this.userid, isAll: 1, id: this.team_id, team_id: this.team_id}})
      // } else {
      //   this.$router.push({path: '/TeamSevices', query: {userid: this.userid, isAll: 1, id: this.team_id, team_id: this.team_id}})
      // }
      this.$router.push({path: '/TeamSevices', query: {userid: this.userid, isAll: 1, id: this.team_id, team_id: this.team_id}})

      // }
    },
    // 点击团队二维码
    runCode (now) {
      if (now == 'team') {
        this.$router.push({
          path: '/TeamOrganCode',
          query: {userid: '', team_id: this.team_id, group_id: ''}
        })
      } else if (now == 'self') {
        this.$router.push({
          path: '/TeamOrganCode',
          query: {userid: this.userid, team_id: this.team_id, group_id: '', doc_name: this.loginInformation.NICK_NAME}
        })
      }
    },
    clickTeamUse (item) {
      let huanJin = item.url.split(':')[0]
      let fangfa = item.url.split(':')[1]
      if (huanJin == 'ANDROID') {
        if (sessionStorage.getItem('sys') === 'ANDROID') {
          window.WebViewJavascriptBridge.callHandler(fangfa, this.team_id, function (responseData) {})
        } else if (sessionStorage.getItem('sys') === 'IOS') {
          window.webkit.messageHandlers.goOrganizationChart.postMessage({team_id: this.team_id, team_name: this.teamInformation.team_name})
        } else {
          this.$toast('请在康护到家app上使用此功能')
          return false
        }
      } else if (item.url == '#') {
        this.$toast('正在开发中，敬请期待...')
      } else {
        if (item.url == '/TeamSys') {
          this.$router.push({path: '/TeamSys', query: {userid: this.userid, isAll: 1, team_id: this.item_id, id: this.team_id, is_allow_in: this.teamInformation.is_allow_in}})
          return false
        } else if (item.url == '/BuildTeam') {
          this.$router.push({path: item.url, query: {userid: this.userid, isEdit: 1, team_id: this.team_id}})
          return false
        } else if (item.url == '/priceList') {
          this.$router.push({path: item.url, query: {userid: this.userid, team_id: this.team_id, id: this.team_id, isAll: 1}})
          return false
        } else if (item.url == '/teamPriceList') {
          this.$router.push({path: '/teamPriceList', query: {userid: this.userid, team_id: this.team_id, id: this.team_id, isAll: 1, showNav: 1}})
          return false
        } else {
          this.$router.push({
            path: item.url,
            query: {userid: this.userid, team_id: this.team_id, doc_user_id: this.userid}
          })
        }
      }
    },
    // 点击功能
    clickUse (item) {
      if (item.path == '#') {
        this.$toast('正在开发中，敬请期待...')
        return false
      } else if (item.type || item.type == 0) {
        let obj = {
          team_id: this.team_id,
          userid: this.userid,
          type: item.type
        }
        this.$router.push({path: item.path, query: obj})
        // 跳转1
        // window.location.href = item.path + '&team_id=' + this.team_id + '&userid=' + this.userid + '&' + item.query
      } else if (item.path == '/ScheduleListTable') {
        this.$router.push({
          path: item.path,
          query: {userid: this.userid, team_id: this.team_id, doc_user_id: this.userid}
        })
      } else if (item.path == '/TeamHome') {
        this.changeTeamShow = true
      } else if (item.path == '/TeamMyServicesTable') {
        this.$router.push({
          path: item.path,
          query: {userid: this.userid, team_id: this.team_id, doc_name: this.loginInformation.NICK_NAME}
        })
      } else {
        this.$router.push({
          path: item.path,
          query: {userid: this.userid, team_id: this.team_id}
        })
      }
    },
    // 登录者信息
    getDocInfo () {
      this.$http.minidoctorDetail({doc_user_id: this.userid})
        .then(res => {
          console.log(res)
          if (res.data.status === 'success') {
            this.loginInformation = res.data.data
          }
        })
        .catch(err => {
          console.log(err)
        })
    },
    // 获取团队详情
    getTeamDetail () {
      this.$http.Teamdetail({id: this.team_id})
        .then(res => {
          console.log(res)
          if (res.data.status === 'success') {
            this.teamInformation = res.data.data
            this.TeamLeader = res.data.data.USER_ID
            this.is_allow_in = res.data.data.is_allow_in

            this.teamDoctorList = res.data.data.doctor
          }
        })
        .catch(err => {
          console.log(err)
        })
    },
    // 返回
    back () {
      this.$router.history.go(-1)
    }
  },
  destroyed () {
    if (this.shrinkShow) {
      sessionStorage.setItem('isErweimaShow', 1)
    }
  }
}
</script>
<style lang="scss" scoped>
  $Theme-color: #1da4f2;
  $font-size15: 15px;
  $font-size13: 13px;
  $font-size11: 11px;
  %flex-all{
    display: flex;
    align-items: center;
  }
  %flexAll {
    display: flex;
    align-items: center;
  }
  .all {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #FAF9FE;
    font-size: 15px;
  }

  header {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9;
    background: #1da4f2;
    //background: linear-gradient(90deg, #1DA3F2, #1DC7F2);
    color: #FFFFFF;
  }
  .top{
    width: 100%;
    color: #FFFFFF;
    background: #1da4f2;
    //background: linear-gradient(90deg, #1DA3F2, #1DC7F2);
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
  }
  .div {
    width: 33%;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: "PingFang SC";
    font-size: 15px;
    font-weight: bold;
  }

  .div img {
    margin-right: 5px;
  }

  .div:nth-child(1) img {
    height: 13px;
    width: 7px;
    margin-left: 15px;
  }

  .div:nth-child(3) img {
    margin-right: 5px;
    width: 13px;
    height: 13px;
  }

  .div:nth-child(3) span {
    margin-right: 15px;
  }

  .div:nth-child(2) {
    justify-content: center;
  }

  .div:nth-child(3) {
    justify-content: flex-end;
  }
  .solid {
    color: $Theme-color;
  }
  .slide-fade-enter-active {transition: all .2s ease;}
  .slide-fade-leave-active {transition: all .2s cubic-bezier(1.0, 0.5, 0.8, 1.0);}
  .slide-fade-enter, .slide-fade-leave-to{transform: translatey(5px);opacity: 0;}
  .infoList{
    display: flex;
    //padding-top: 10px;
    box-sizing: border-box;
    .infoDiv{
      display: flex;
      align-content: space-between;
      flex: 1;
      ul{
        li{
          //line-height: 25px;
          margin-bottom: 5px;
        }
        li:nth-child(3) {
          font-size: $font-size13;
        }
      }
      p{
        padding: 10px;
        box-sizing: border-box;
      }
    }
    .teamInfo{
      border-right: 1px solid #fff;
    }
    .loginInfo{
    }
     .codeImg{
      width: 40px;
      height: 40px;
      margin-bottom: 5px;
    }
    .tag{
      min-width: 50px;
      padding: 3px 8px;
      box-sizing: border-box;
      //height: 25px;
      border-radius: 9px;
      font-size: $font-size11;
    }
    .teamTag{
      background: linear-gradient(90deg, #F9BD77, #FFED91);
    }
    .loginTag{
      background: #fff;
      color: $Theme-color;
    }
  }
  .shrink{
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005489;
    margin: 10px auto;
    img{
      width: 15px;
      height: 15px;
      margin-left: 8px;
    }
  }
  .divMenu{
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    //margin: 10px auto;
    //border-radius: 10px;
    &:first-child{
      border-radius: 10px 10px 0 0;
      margin-top: 10px;
    }
    &:last-child{
      border-radius: 0 0 10px 10px;
      margin-bottom: 10px;
    }
    ul{
      width: 33%;
      padding: 10px 0;
      box-sizing: border-box;
      li:nth-child(1) {
        font-size: 17px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #fff;
      }
      li{
        width: 100%;
        height: 20px;
        display: flex;
        justify-content: center;
        color: #fff;
        font-size: 13px;
      }
    }
  }
  .photo{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px;
  }
  .title{
    width: 100%;
    height: 44px;
    padding: 0 10px;
    box-sizing: border-box;
    background: #FFFFFF;
    line-height: 44px;
    margin-top: 5px;
    @extend %flex-all;
  }
  .title_all{
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    @extend %flex-all;
  }
  .hengGang{
    display: block;
    width: 2px;
    border-radius: 1px;
    height: 16px;
    background: #1DA4F2;
    margin-right: 5px;
  }

  .overText{
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .CommonFunctions{
    width: 100%;
    background: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    color: #333333;
    border: 1px solid #E5E5E5;
    //border-top: 1px solid #E5E5E5;
    //border-bottom: 1px solid #E5E5E5;
    img{
      width: 22px;
      height: 22px;
      margin-left: 20%;
      margin-right: 5px;
    }
    div {
      width: 50%;
      min-height: 60px;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      //border-bottom: 1px solid #E5E5E5;
      box-sizing: border-box;
      font-size: 15px;
      border-right: none;
      border-left: none;
      border-bottom: 1px solid #E5E5E5;
      margin-top: -1px;
      margin-bottom: -1px;
      &:nth-child(odd){
        border-right: 1px solid #E5E5E5;
      }
    }
  }
  .textOVerFive {
    width: 90%;
    margin: 0 auto;
    display: block;
    -webkit-line-clamp:3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow:hidden;
    text-overflow:ellipsis;
    overflow: hidden;
    //line-height:1.4em;
    .xiangqing::after{
      //background: linear-gradient(
      //    90deg
      //  , #1DA3F2, #1DC7F2);
      background: #1da4f2;
      color: #333;
      position: absolute;
      bottom: 0;
      content: "[详情]";
      padding: 0 6px 1px 20px;
      //padding: 0 0 1px 0;
      //margin-right: 5px;
      right: 0;
    }
  }
  .xiangqing{
    text-align: center;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    //background: linear-gradient(
    //    90deg
    //  , #1DA3F2, #1DC7F2);
    //display: none;
  }
  /deep/ .van-cell{
    font-size: 15px;
  }
</style>
<style scoped>
/deep/ .van-collapse-item__content {
  padding: 0;
}

.box{
  padding: 10px;
  box-sizing: border-box;
  background: white;
  margin-bottom: 8px;
  display: flex;
}
.all .box:last-of-type{
  margin-bottom: 60px;
}
.PHOTO{
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}
.box_left{
  width: 23%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
.dict_name{
  font-size: 11px;
  border: 1px solid #1DA4F2;
  border-radius: 2px;
  background: rgba(16, 184, 246, 0.1);
  color: #1da4f2;
  padding: 1px 3px;
  box-sizing: border-box;
  white-space: nowrap;
  /*margin-top: 10px;*/
}
.box_right{
  width: 78%;
}
.box_right ul{
  /*height: 60px;*/
  display: flex;
  flex-direction: column;
  align-content: space-around;
  justify-content: space-around;
}
.box_right ul li{
  display: flex;
  align-items: center;
  font-size: 13px;
  font-family: PingFang SC;
  min-height: 25px;
}
.box_right ul li:nth-child(1){
  justify-content: space-between;
}
.name{
  font-size: 15px!important;
  font-weight: bold;
  color: #333333;
}
.biaoqian{
  /*padding: 0px 8px;*/
  min-width: 44px;
  height: 18px;
  border-radius: 15px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* background: rgba(29, 164, 242, 0.1); */
  background: transparent;
  color: #1DA4F2;
  /* border: none; */
  border: 1px solid;
  font-size: 11px;
  margin-left: 8px;
}
.btnXiangQing{
  color: white;
  background: #1DA4F2;
  border: none;
  padding: 3px 8px;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 11px;
}
.btnXiangQing img{
  width: 5px;
  height: 9px;
  margin-left: 5px;
}

.btnXiangQing,
.biaoqian,
.jieShao
{
  display: flex;
  align-items: center;
  justify-content: center;
}
.jieShao{
  font-size: 13px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #333333;
  margin-right: 8px;
}
.box_rigth_bottom{
  margin-top: 5px;
}
.box_rigth_bottom p{
  margin-bottom: 5px;
}
.box_rigth_bottom p:nth-child(1),
.box_rigth_bottom p:nth-child(3){
  font-size: 13px;
}
.box_rigth_bottom p a{
}
.box_rigth_bottom p span{
  color: #E3170D;
  margin: 0 8px 0 3px;
}
.goodAt{
  font-size: 13px;
  display: flex;
}
.goodAt a{
  display: block;
  white-space: nowrap;
}
.goodAt span{
  /*width: 80%;*/
  text-overflow: -o-ellipsis-lastline;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #333 !important;
}
.selectDoctor{
  background: rgba(29, 164, 242, 0.1) !important;
}
</style>
